NeXT TypedStream Data | 1995-02-17 | 5.1 KB | 115 lines
typedstream
IBObjectData
Object
CustomObject
Application
NXTableVector
iiff*@@@
firstName
Helvetica-Bold
NXTextFormatter
NXFormatter
Helvetica
NXTableView
ScrollView
Responder
Matrix
Control
@:@iiii
ButtonCell
ActionCell
Fetch
ff@@#::s
FormCell
city:
address:
Field:
salary:
Button
Validate changes immediately
NXImage
NXswitch
NXswitchH
ClipView
_NXGridView
i@@@@@
_NXLayout
@@ffcii
lastName
departmentName
_NXHeadingView
_NXHeadingCell
TextFieldCell
Scroller
_doScroller:
@@@ffs
i@@@@@::
NXCursor
NXibeam
ciifffcfffs
[1336c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
\margl40
\margr40
{\colortbl;\red0\green0\blue0;}
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ulnone\fs28\fc1\cf1 Running the Example
\b0\fs24\fc0\cf0 \
Try making changes to the city, address, and salary fields in the application. If "validate changes immediately" is checked certain constraints will be checked as soon as you try to leave a field. All constraints are checked before saving to the data source.\
\b Validation Rules:
\b0 \
The employee class in this example encodes the following constraints:\
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0\cf0 Also, employees pass themselves on to their departments for department-specific validation. This check is performed only when the object is about to be inserted of updated in the data source. In this case department adds the constraint:\